package com.sixth.health.servict.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sixth.core.entity.TestDetail;
import com.sixth.core.vo.R;
import com.sixth.health.mapper.TestDetailMapper;
import com.sixth.health.servict.TestDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description:
 * @author: 朱永奇
 * @create: 2024-08-24 16:48
 **/
@Service
public class TestDetailImpl extends ServiceImpl<TestDetailMapper, TestDetail> implements TestDetailService {
    @Autowired
    private TestDetailMapper testDetailMapper;

    /**
     * 获取健康测试题目
     * @param htId
     * @return
     */
    @Override
    public R<List<TestDetail>> selectAll(String htId) {
        List<TestDetail> testDetails = testDetailMapper.selectList(htId);
        return R.ok(testDetails);
    }
}
